Pure type system

Unsolved problems in computer science
Prove or disprove Barendregt–Geuvers–Klop conjecture.

In the branches of mathematical logic known as proof theory and type theory, a pure type system (PTS), previously known as a generalized type system (GTS), is a form of typed lambda calculus that allows an arbitrary number of sorts and dependencies between any of these. The framework can be seen as a generalisation of Barendregt's lambda cube, in the sense that all corners of the cube can be represented as instances of a PTS with just two sorts.[1][2] In fact Barendregt (1991) framed his cube in this setting.[3] Pure type systems may obscure the distinction between types and terms and collapse the type hierarchy, as it is the case of the calculus of constructions, but this is not generally the case, e.g. the simply typed lambda calculus allows only terms to depend on types.

Pure type systems were independently introduced by Stefano Berardi (1988) and Jan Terlouw (1989).[1][2] Intuitionistic logics were first described as pure type systems by Barendregt.[4] In his PhD thesis,[5] Berardi defined a classical logic cube containing constructive logics akin to the lambda cube (these specifications are non-dependent). A modification of this cube was later called the L-cube by Geuvers, which in his PhD thesis extended the Curry–Howard correspondence to this setting.[6] Based on these ideas, Barthe and others defined classical pure type systems (CPTS) by adding a double negation operator.[7] Similarly, in 1998, Tijn Borghuis introduced modal pure type systems (MPTS).[8] Roorda has discussed the application of pure type systems to functional programming; and Roorda and Jeuring have proposed a programming language based on pure type systems.[9]

The systems from the lambda cube are all known to be strongly normalizing. Pure type systems in general need not be, for example U from Girard's paradox is not. (Roughly speaking, Girard found pure systems in which one can express the sentence "a type is a type".) Furthermore, all pure type systems that are not strongly normalizing are not even (weakly) normalizing: they contain expressions that do not have normal forms, just like the untyped lambda calculus. It is a major open problem in the field whether this is always the case, i.e. whether a (weakly) normalizing PTS always has the strong normalization property. This is known as the Barendregt–Geuvers–Klop conjecture[10] (named after Henk Barendregt, Herman Geuvers, and Jan Willem Klop).

Implementations

The following programming languages have pure type systems:

See also

Notes

  1. ^ a b Pierce, Benjamin (2002). Types and Programming Languages. MIT Press. p. 466. ISBN 0-262-16209-1. 
  2. ^ a b Fairouz D. Kamareddine, Twan Laan, Rob P. Nederpelt, A modern perspective on type theory: from its origins until today, Springer, 2004, ISBN 1402023340, section 4c, "Pure type systems", p. 116
  3. ^ Barendregt, H. P. (1991). "Introduction to generalized type systems". Journal of Functional Programming 1 (2): 125–154. http://dare.ubn.kun.nl/dspace/bitstream/2066/17240/1/13256.pdf. 
  4. ^ H. Barendregt (1992). "Lambda calculi with types". In S. Abramsky, D. Gabbay and T. Maibaum. Handbook of Logic in Computer Science. Oxford Science Publications. ftp://ftp.cs.ru.nl/pub/CompMath.Found/HBK.ps. 
  5. ^ S. Berardi. Type dependence and Constructive Mathematics. PhD thesis, University of Torino, 1990.
  6. ^ H. Geuvers. Logics and Type Systems, PhD thesis, University of Nijmegen, 1993.
  7. ^ G. Barthe; J. Hatcliff; M. H. Sørensen (1997). "A Notion of Classical Pure Type System". Electronic Notes in Theoretical Computer Science 6: 4–59. doi:10.1016/S1571-0661(05)80170-7. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.32.1371. 
  8. ^ Borghuis, Tijn (1998). "Modal Pure Type Systems". Journal of Logic, Language and Information 7 (3): 265–296. doi:10.1023/A:1008254612284. 
  9. ^ Jan-Willem Roorda; Johan Jeuring. "Pure Type Systems for Functional Programming". http://people.cs.uu.nl/johanj/MSc/jwroorda/.  Roorda's masters' thesis (linked from the cited page) also contains a general introduction to pure type systems.
  10. ^ Sørensen, Morten Heine; Urzyczyn, Paweł (2006). "Pure type systems and the lambda cube". Lectures on the Curry–Howard isomorphism. Elsevier. p. 358. ISBN 0444520775. 

References

  • Morten Heine Sørensen, Paweł Urzyczyn, Lectures on the Curry–Howard isomorphism, Elsevier, 2006, ISBN 0444520775, chapter 14, "Pure type systems and the lambda cube."
  • Berardi, Stefano. Towards a mathematical analysis of the Coquand–Huet calculus of constructions and the other systems in Barendregt's cube. Technical report, Department of Computer Science, CMU, and Dipartimento Matematica, Universita di Torino, 1988.
  • Terlouw, J. (in Dutch) Een nadere bewijstheoretische analyse van GSTTs. Manuscript, University of Nijmegen, Netherlands, 1989.

Further reading

External links